package com.iwop.moto.service;

import com.iwop.moto.model.MPromotion;
import com.iwop.moto.model.SuperRecordModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/** 分销用户查询查询
 * @author czq
 * @version 1.0
 * @created 2017/2/14 0014.
 */

public interface MPromotionService {


    /**
     * 根据被推荐人用户id查询推荐人信息
     *
     * @param fromUserId
     * @return
     */
    MPromotion getSuperUserByFromUser(@Param("fromUserId") String fromUserId);

    /**
     * 获取下级用户
     * @param hostUserId
     * @return
     */
    List<String> getChildUsersByhostUser(@Param("hostUserId") String hostUserId);

    /**
     * 获取当前用户下属用户信息
     * @param userId
     * @return
     */
    List<SuperRecordModel> findChildUserInfoByUserId(SuperRecordModel superRecordModel);

    Long countPayMent(SuperRecordModel srModel);
}
